import { HttpException, HttpStatus } from '@nestjs/common';

export class QuantityExceededException extends HttpException {
  constructor(quantity: number) {
    super(`您今日使用次数已达上限${quantity},请明日再来。`, HttpStatus.BAD_REQUEST);
  }
}